package de.hauschild.orbitvm.vm;

/**
 * Exception thrown by {@link VM}.
 * 
 * @since 1.0.0
 * @author Klaus Hauschild
 */
public class VMException extends RuntimeException {

  private static final long serialVersionUID = 2488083581134412129L;
  private final boolean failed;

  /**
   * The Constructor.
   * 
   * @param message
   *          the message
   * @param missionfailed
   *          the missionfailed
   */
  public VMException(final String message, final boolean missionfailed) {
    super(message);
    failed = missionfailed;
  }

  /**
   * Gets the mission failed.
   * 
   * @return the mission failed
   */
  public boolean getMissionFailed() {
    return failed;
  }

}
